-- GENERATED SPELL FOR [Restless Shade] --


function spell0_7370(pUnit, Event) --@Chilling Touch,n/a--
pUnit:FullCastSpellOnTarget(38240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7370', 6280, 1)
end

function spell1_7370(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(18267,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7370', 30323, 1)
end

function Sorts_7370(pUnit, Event)
local choix_sorts_7370 = math.random(0, 1)
if choix_sorts_7370 == 0 then
pUnit:RegisterEvent('spell0_7370', 1, 1)
end
if choix_sorts_7370 == 1 then
pUnit:RegisterEvent('spell1_7370', 1, 1)
end
end

function mob7370_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7370', math.random(1500, 3000), 1)
end

function mob7370_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7370_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7370_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7370, 1, 'mob7370_Action')
RegisterUnitEvent(7370, 2, 'mob7370_Leave')
RegisterUnitEvent(7370, 3, 'mob7370_Kill')
RegisterUnitEvent(7370, 4, 'mob7370_Die')
